package com.mojavelinux.open18;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.jboss.seam.annotations.Name;

@Name("golfRegulation")
public class GolfRegulation {

	public enum HoleGrouping { IN, OUT };
	
	public List<Integer> getHoleNumbersOut() {
		return Arrays.asList( new Integer[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 } );
	}
	
	public List<Integer> getHoleNumbersIn() {
		return Arrays.asList( new Integer[] { 10, 11, 12, 13, 14, 15, 16, 17, 18 } );
	}
	
	public List<Integer> getHoleNumbers() {
		List<Integer> holeNumbers = new ArrayList<Integer>();
		holeNumbers.addAll( getHoleNumbersOut() );
		holeNumbers.addAll( getHoleNumbersIn() );
		return holeNumbers;
	}
	
	public List<String> getTeeColors() {
		return Arrays.asList( new String[] { "black", "blue", "gold", "green", "orange", "red", "silver", "white", "yellow" } );
	}
	
}
